package com.example.mylearn.designPattern.chainOfResponsibility.learn;

import lombok.Locked;
import org.apache.logging.log4j.spi.StandardLevel;

public class BookApplication {

    public static void main(String[] args) {

        SelectBook selectBook = new SelectBook();
        FindBook findBook = new FindBook();
        ReadBook readBook = new ReadBook();

        selectBook.setNext(findBook);
        findBook.setNext(readBook);

        BookInfo bookInfo = new BookInfo();
        bookInfo.setBookName("假时间聚会");
        bookInfo.setBookId("123");

        selectBook.handler(bookInfo);




    }



}
